package tw.com.softleader.fire.setting.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tw.com.softleader.fire.common.dao.GenericDao;
import tw.com.softleader.fire.common.service.GenericService;
import tw.com.softleader.fire.setting.dao.AddrZipDao;
import tw.com.softleader.fire.setting.entity.AddrZipEntity;

@Service
public class AddrZipService extends GenericService<AddrZipEntity> {

	@Autowired
	private AddrZipDao dao;
	
	@Override
	protected GenericDao<AddrZipEntity> getDao() {
		return dao;
	}
	
	protected AddrZipDao getAddrZipDao() {
		return dao;
	}
	
	public List<AddrZipEntity> search(String code){
		return getAddrZipDao().findByCode(code);
	}
/*	public List<AddrZipEntity> search(AddrZipEntity entity){
		return getAddrZipDao().findByCode(entity);
	}*/
	
}
